next
Round
Technologies
Saved
Contribute
Login
next
Round
Technologies
Saved
Contribute
Login
Question Loading...
Dynamic Routes
1. What is a route segment how to define it in next js?
Level: Expert | Frequency: High
2. How to create a dynamic route segment ?
Level: Expert | Frequency: High
3. What are dynamic routes?
Level: Expert | Frequency: High
4. What are catch-all segments and what is its use?
Level: Expert | Frequency: High
5. How would you implement slug-based routing that also supports localization? (e.g. /en/products/shoes vs /fr/produits/chaussures)
Level: Expert | Frequency: High
6. What is the difference between params and searchParams props in a page component? Can both be used in Server Components?
Level: Expert | Frequency: High
7. How do you access route params in a Server Component vs a Client Component in the App Router?
Level: Expert | Frequency: High
8. How do you build a deeply nested dynamic route like /shop/[category]/[subcategory]/[productId]? What are the pitfalls?
Level: Expert | Frequency: High
9. What happens when a user navigates to a dynamic route that was not pre-generated by generateStaticParams? How do you control this with dynamicParams?
Level: Expert | Frequency: High
10. Explain the difference between [slug], [...slug], and [[...slug]]. Give examples of URLs each would match.
Level: Expert | Frequency: High
All Topics
Basics
Project Structure
Runtime
Compiler
SSG
SSR
CSR
Routing
Route Handlers
Route Groups
Dynamic Routes
Parallel Routes
Intercepting Routes
Middleware
Server Actions
APIS
Data Fetching
Caching
Clients
Optimisation
i18n
Security
Architecture
Deployment
Accessibility